/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :bootmybatis
 * File Name: com.example.bootmybatis.model
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-07-02 15:27
 * History:  
 * 1. Date: 2018-07-02
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.mybatis.model;

/**
 * 异常实体
 *
 * @author guojm
 * @version V1.0
 * @date 2018-07-02
 */
public class ErrorInfo<T> {
    public static final Integer OK = 0;
    public static final Integer ERROR = 100;

    private Integer code;
    private String message;
    private String url;
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
